package com.thb.utils;

import java.util.List;

/**
 * 分页实现类工具类
 * @author HAO
 *
 * @param <E>
 */
@SuppressWarnings("unused")
public class Page<E> implements java.io.Serializable  {
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int curPage;
	private int totalPage;
	private List<E> list;
	public static int pageSize = 10;
	
	public Page(int curPage,int totalPage,List<E> list ){
		this.curPage = curPage;
		this.totalPage = totalPage;
		this.list = list;
		
	}
	
	public Page(){
		
	}
	
	public int getCurPage() {
		return curPage;
	}

	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public List<E> getList() {
		return list;
	}

	public void setList(List<E> list) {
		this.list = list;
	}

	public static int getPageSize() {
		return pageSize;
	}

	public static void setPageSize(int pageSize) {
		Page.pageSize = pageSize;
	}
	
	

}
